package com.jeejam.cart.dubbo;

import com.alibaba.dubbo.config.annotation.Service;
import com.jeejam.cart.sdk.api.ICartService;
import com.jeejam.cart.sdk.dto.CartDto;
import com.jeejam.cart.sdk.dto.CartItemDto;
import org.springframework.stereotype.Component;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Created by JACKEY on 2016/3/6.
 */
@Component
@Service(version = "1.0.0")
public class CartDubboService implements ICartService{
    @Override
    public CartDto getCart(HttpServletRequest request) throws Exception {
        return null;
    }

    @Override
    public CartDto getCartByCookie(HttpServletRequest request) throws Exception {
        return null;
    }

    @Override
    public void add(CartDto currentCart, CartItemDto cartItem, HttpServletRequest request, HttpServletResponse response) throws Exception {

    }

    @Override
    public String parse(CartDto cart) {
        return null;
    }

    @Override
    public CartDto translate(String cartStr) {
        return null;
    }

    @Override
    public void saveWithMember(int userId, HttpServletRequest request, HttpServletResponse response) throws Exception {

    }

    @Override
    public void clearByCookie(HttpServletRequest request, HttpServletResponse response) throws Exception {

    }

    @Override
    public void deleteByCookie(HttpServletResponse response) throws Exception {

    }

    @Override
    public CartDto findByUserId(int userId) {
        return null;
    }

    @Override
    public void addWithMember(CartDto currentCart, CartItemDto cartItem, int userId) {

    }

    @Override
    public void clearByUserId(int userId) {

    }

    @Override
    public void deleteItemByProductId(int productId, HttpServletRequest request, HttpServletResponse response) throws Exception {

    }

    @Override
    public void deleteWithMember(int userId, int productId) {

    }

    @Override
    public CartDto findForConfirmByUserId(int userId) {
        return null;
    }
}
